package com.ssmdemo.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.additional.query.impl.QueryChainWrapper;
import com.ssmdemo.entity.User;
import com.ssmdemo.service.UserService;
import com.ssmdemo.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/user")
@CrossOrigin("*")
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/query")
    @ResponseBody
    public Result query(){
        System.out.println("请求成功！！");
        Result result=new Result();
        String json="'message':'"+result.getMessage()+"','code':'"+result.getCode()+"','data':'"+result.getData()+"'";
        return result;
    }

}
